<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>更新信息</title>
</head>
<body>
<center>
更新信息
<s:form action="bookAction!update" method="post" namespace="/">
<!-- 使用旧值填充 -->
		<s:hidden name="id" value="%{#parameters.id}"/>
		<s:textfield name="name"  value="%{#parameters.name}" label="名称"/>
		<s:textfield name="author"  value="%{#parameters.author}" label="作者"/>
		<s:textfield name="publish"  value="%{#parameters.publish}" label="出版社"/>
		<s:textfield name="publishdate"  value="%{#parameters.publishdate}" label="出版日期"/>
		<s:textfield name="page"  value="%{#parameters.page}" label="页数"/>
		<s:textfield name="price"  value="%{#parameters.price}" label="定价"/>
		<s:textfield name="content"  value="%{#parameters.content}" label="摘要"/>
	
	
		<s:submit value="更新"></s:submit>
</s:form>
<a href="bookAction!queryAll" method="post">查看书籍信息</a>

</center>
</body>
</html>